package com.etc;

import org.aopalliance.intercept.Joinpoint;
import org.aspectj.lang.ProceedingJoinPoint;
import org.springframework.aop.Pointcut;

public class NoticeAdvice {

    public void before() {
        System.out.println("加1块钱");
    }
    public void after() {
        System.out.println("再加1块钱");
    }
    public void throwingException() {
        System.out.println("再加1块钱服务费");
    }
    public void around(ProceedingJoinPoint joinpoint) throws Throwable {
        System.out.println("around");
        joinpoint.proceed();
    }

    public void afterreturning() {
        System.out.println("afterreturning");
    }
}
